package com.wzxy.nc.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.wzxy.nc.entity.SysRole;
import com.wzxy.nc.service.ISysRoleService;

@Controller
public class RoleController extends AbsBaseController{

	private static final long serialVersionUID = 8188810545675216871L;
	
	@Autowired
	private ISysRoleService roleService;
	
	public String list(){
		List<SysRole> roles = roleService.findAll();
		super.getRequest().setAttribute("roles", roles);
		super.setForwardPage("/WEB-INF/pages/role/role-list.jsp");
		return SUCCESS;
	}

}
